@{Layout = "~/Views/Shared/_Login.cshtml";}

@model  BarManager.UI.Web.Models.LoginViewModel

@{ViewBag.Title = "Log in";}

<div class="form-signin">
    <h2>@ViewBag.Title</h2>

    @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
    {
        @Html.AntiForgeryToken()

        <div class="control-group">
            <div class="control-label">@Html.ValidationMessageFor(m => m.Usuario)</div>
            <div class="controls">
                <div class="input-prepend">
                    <span class="add-on"><i class="icon-user"></i></span>
                    @Html.TextBoxFor(m => m.Usuario, new { @class = "input-block-level", @placeholder = "Usuario" })
                </div>
            </div>
        </div>

        <div class="control-group">
            <div class="control-label">@Html.ValidationMessageFor(m => m.Password)</div>
            <div class="controls">
                <div class="input-prepend">
                    <span class="add-on"><i class="icon-lock"></i></span>
                    @Html.PasswordFor(m => m.Password, new { @class = "input-block-level", @placeholder = "Password" })
                </div>
            </div>
        </div>

        <div class="control-group">
            <div class="controls">
                <input type="submit" class="btn btn-large btn-primary" value="Ingresar" />
                <p>
                    @Html.ValidationSummary(true)
                </p>
            </div>
        </div>
    }
</div>
